package com.jsbb.dto.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 菜单新增DTO
 *
 * @author w
 * @date 2021-03-05
 */
@Data
public class SysMenuSaveDto {

    @NotEmpty
    @ApiModelProperty(value = "菜单名称", required = true)
    private String menuName;

    @ApiModelProperty(value = "URL")
    private String url;

    @ApiModelProperty(value = "父ID")
    private Long parentId;

    @NotNull
    @ApiModelProperty(value = "类型(1菜单 2按钮)", required = true)
    private Integer type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "权限标识")
    private String perms;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "备注")
    private String remark;
}
